package com.fortune.dto.in.paymentMgt;

import com.fortune.common.paging.PagingDto;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;

/**
 * Created by Administrator on 2018/5/29 0029.
 */
public class DistributorPaymentListDto extends PagingDto {
    @ApiModelProperty(required=false, example="搜索条件")
    private String search;
    @ApiModelProperty(required=false, example="搜索条件")
    private Integer approved;
    @ApiModelProperty(required=false, example="搜索条件")
    private Integer isDealer;
    @ApiModelProperty(example="排序依据(起始日期:startTime,截止日期:endTime,满数量:achieveNum,赠数量:giftNum,优惠名称:name,商品名称:productName,商品编号:producNumber,默认为startTime)",allowableValues = "startTime,endTime,achieveNum,giftNum,name,productName,producNumber")
    private String order;
    @Min(value = 0,message = "最小值为0")
    @Max(value = 1,message = "最大值为1")
    @ApiModelProperty(example="排序类型(0升序,1降序,默认为1)")
    private Integer type;


    public String getOrder() {
        return order;
    }

    public void setOrder(String order) {
        this.order = order;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getSearch() {
        return search;
    }

    public void setSearch(String search) {
        this.search = search;
    }

    public Integer getApproved() {
        return approved;
    }

    public void setApproved(Integer approved) {
        this.approved = approved;
    }

    public Integer getIsDealer() {
        return isDealer;
    }

    public void setIsDealer(Integer isDealer) {
        this.isDealer = isDealer;
    }
}
